package com.childenglish.entity;

import java.time.LocalDateTime;

public class SysStudentClass {
    private Long id;
    private Long studentId;
    private Long classId;
    private LocalDateTime joinTime;
    private String status; // 0在读 1毕业 2转出
    private LocalDateTime createTime;

    // 无参构造
    public SysStudentClass() {
    }

    // 全参构造（可选）
    public SysStudentClass(Long studentId, Long classId, LocalDateTime joinTime, String status) {
        this.studentId = studentId;
        this.classId = classId;
        this.joinTime = joinTime;
        this.status = status;
    }

    // Getter & Setter
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public LocalDateTime getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(LocalDateTime joinTime) {
        this.joinTime = joinTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysStudentClass{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", classId=" + classId +
                ", joinTime=" + joinTime +
                ", status='" + status + '\'' +
                '}';
    }
}

